﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/AdministradorServicio.Master" AutoEventWireup="true" CodeBehind="repAtributo.aspx.cs" Inherits="LimsWeb.iAdministradors.repAtributo" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


    <script>

        function irConfigAttr(url) {
            window.open(url, 'ventana1', 'top=0,left=300,height=510,width=1000,scrollbars=1,resizable=1,location=no');
        }

        function irConfig(url) {
            window.open(url, 'ventana22', 'top=0,left=300,height=510,width=1000,scrollbars=1,resizable=1,location=no');
        }

        function irNuevaMuestra(url) {
            window.open(url, 'ventana33', 'top=0,left=300,height=490,width=550,scrollbars=1,resizable=1,location=no');
        }

    </script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphAdministrador" runat="server">

    
     <script type="text/javascript">
         $(function () {
             $('#cphAdministrador_txtFecInicio').datepicker();
             $('#cphAdministrador_txtFecFin').datepicker();
         });
    </script>

    <div class="titulo" style="border-bottom: 1px solid blue; padding-top: 20px; padding-bottom: 4px; padding-left: 10px; width: 1080px; margin: auto;">
        <asp:Label ID="lblProducto" Text="[Producto]" Style="font-family: Verdana; font-size: 14px;" runat="server"></asp:Label>
    </div>

    
        <asp:Button runat="server" Text="Crear Muestra" CssClass="botoness" ID="btnCrearMuestra" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; opacity: 1; border-radius: 0px; margin-left: 18px; margin-right: -4px;" OnclientClick="irNuevaMuestra('vCrearMuestra.aspx')" />
    <asp:Button runat="server" Text="Config. Parametro   " CssClass="botoness" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; border-radius: 0px; margin-right: -4px;" ID="Config" OnClientClick="irConfig('vAsociarParametro.aspx')" />
    <asp:Button runat="server" Text="Config. Atributo   " CssClass="botoness" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; border-radius: 0px; margin-right: -4px;" ID="Button1" OnClientClick="irConfigAttr('vAsociarAtributo.aspx')" />
    <asp:Button runat="server" Text="Vista Gráficos" CssClass="botoness" ID="btnVistas" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; border-radius: 0px; margin-right: -4px;" OnClientClick="irNuevaMuestra('vVistaGraficos.aspx')" />

    <br />
    <asp:Button runat="server" Text="Historial" CssClass="botoness" ID="btnHistorial" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; opacity: 1; border-radius: 0px; margin-left: 18px; margin-right: -4px;"  OnClick="btnHistorial_Click" />
    <asp:Button runat="server" Text="Gráficas de Control" CssClass="botoness" ID="btnInforme" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px;  border-radius: 0px; margin-right: -4px;" OnClick="btnInforme_Click" />
    <asp:Button runat="server" Text="Generar Reporte" CssClass="botoness" ID="Button2" Style="width: 150px; margin-top: 5px; padding-top: 3px; padding-bottom: 3px; opacity: 0.7;border-radius: 0px; margin-right: -4px;" OnClick="btnIrGenerarReporte_Click" />

    <br />

    <div style="padding: 20px; border-radius: 5px; font-size: 16px; background: #ddd; width: 95%; margin: 5px auto 0px auto; height: 500px">
            <div>Seleccione Atributo </div> 
            <div style="height: 120px;width:160px; background: none; overflow-y: auto; display:inline-block;">
                <asp:RadioButtonList ID="cblAtributos" runat="server" Style="margin-left: 30px"></asp:RadioButtonList>
            </div>

        <div style=" width:550px
                    ; height:201px
                    ; display:inline-block
                    ; background:none
                    ; float:right
                    ; margin-top:-30px
                    ; margin-right:20px
                    ; border:1px solid #eee "></div>

<%--          <asp:RadioButtonList ID="rbPendientes" runat="server" style="width:150px;background:none;display:inline-block;float:right;margin-right:80px">
            <asp:ListItem Value="1" Selected>Pendiente</asp:ListItem>
            <asp:ListItem Value="3">Finalizado</asp:ListItem>
        </asp:RadioButtonList>--%>
           <br />

        <div style="display: inline-block; width: 80px; margin-left: 15px;">Fecha Inicio</div>
        <asp:TextBox ID="txtFecInicio" autocomplete="off" runat="server" Style="height: 25px; font-size: 13px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvFecInicio" ValidationGroup="ABC"  runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtFecInicio"></asp:RequiredFieldValidator>
        <br />
        <div style="display: inline-block; width: 80px; margin-left: 15px;">Fecha Fin</div>
        <asp:TextBox ID="txtFecFin"  autocomplete="off"  runat="server" Style="height: 25px; font-size: 13px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvFecFin" ValidationGroup="ABC"  runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtFecFin"></asp:RequiredFieldValidator>

        <asp:Button ID="btnGenerarReporte" OnClick="btnGenerarReporte_Click" ValidationGroup="ABC"  runat="server" Text="GenerarReporte" CssClass="btn btn-primary" style="margin-bottom:4px" />
        <br />
        <asp:ScriptManager ID="smParametros" runat="server"></asp:ScriptManager>
        <rsweb:ReportViewer ID="repvParametro" runat="server"  ForeColor="Transparent"  Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Height="250" Width="100%">
            <LocalReport ReportPath="iAdministradors\repAtributos.rdlc">
            </LocalReport>
        </rsweb:ReportViewer>

    </div>

</asp:Content>
